import request from "../util/request";
const api_name = `api/user/patient`
export default {
  // 查询就诊人列表
  findList(){
    return request({
      url:`${api_name}/auth/findAll`,
      method:'get'
    })
  },
  //添加就诊人信息
  save(patient){
    return request({
      url: `${api_name}/auth/savePatient`,
      method: 'post',
      data: patient
    })
  },
// 修改就诊人信息
  updateById(patient){
    return request({
      url:`${api_name}/auth/updatePatient`,
      method:'post',
      data:patient
    })
  },
  getById(id){
    return request({
      url: `${api_name}/auth/getById/${id}`,
      method:'get'
    })
  },
  removeById(id){
    return request({
      url:`${api_name}/auth/removeById/${id}`,
      method:'get'
    })
  }
}
